<?php if(($adc->getSearchValue('AND') != '') || ($adc->getCurrentAdTypeId() > 0) || ($adc->getCurrentAdCatId() > 0)): ?>
<a onclick="jQuery('#searchSaveForm').show('blind');" class="btn btn-primary btn-block"><?php echo ucfirst($txt->getWord('save').' '.$txt->getWord('this_search')); ?></a><br />
	<?php if($adc->getCurrentAdSearchId() > 0): ?>
		<div class="sold float-left"><p class="float-left"><?php echo ucfirst($txt->getWord('search_saved')); ?>&nbsp;&nbsp;</p><img width="24" height="24" src="/images/icons/crystal/ok_24.png" alt="<?php echo $txt->getWord('search_saved'); ?>"></div>
	<?php else: ?>
		<div id="searchSaveForm" style="display:none; overflow:hidden;">
			<?php if($user->getId() > 0): ?>
			<label for="search-type"><?php echo ucfirst($txt->getWord('new_ads_from_this_search_sent_to')).': '.$user->getEmail(); ?></label>
			<br />
			<input id="search-type" type="radio" name="search-type" value="1" checked="checked" />&nbsp;<?php echo ucfirst($txt->getWord('yes')); ?><br />
			<input type="radio" name="search-type" value="0" />&nbsp;<?php echo ucfirst($txt->getWord('no').', '.$txt->getWord('just_save_this_search')); ?><br /><br />
			<label for="search-title" class="bold"><?php echo ucfirst($txt->getWord('title')); ?></label><br />
			<input id="search-title" class="small-s float-left" type="text" name="search-title" value="" />
			<a onclick="jQuery('#search-ad-form').submit();" class="command block float-left" style="padding-left:6px;" title="<?php echo ucfirst($txt->getWord('save')); ?>">
			<img alt="<?php echo ucfirst($txt->getWord('save')); ?>" src="<?php echo SYSICONS_URL; ?>filesaveas_22.png" width="22" height="22" />
			</a><div class="clear"></div>
			<?php else: ?>
			<br />
			<div id="loginLink" <?php if ($_POST['action'] != 'login_user') ?>>
				<p><?php echo ucfirst($txt->getWord('you_must_be_logged_inn').' '.$txt->getWord('to_preform_this_action')); ?>.</p>
				<p><strong><a target="_blank" href="/c/11/"><?php echo ucfirst($txt->getWord('login')); ?> / <?php echo ucfirst($txt->getWord('new').' '.$txt->getWord('user')); ?></a></strong></p>
			</div><div class="clear"></div>
			<?php endif; ?>
		</div>
	<?php endif; ?>
	<div class="v-space"></div><hr />
<?php endif; ?>